package org.link.bean;

public class IpInfo {

	private Integer num1;
	private Integer num2;
	private Integer num3;
	private Integer num4;
	
	public IpInfo() {
		super();
	}
	public IpInfo(Integer num1, Integer num2, Integer num3, Integer num4) {
		super();
		this.num1 = num1;
		this.num2 = num2;
		this.num3 = num3;
		this.num4 = num4;
	}
	public Integer getNum1() {
		return num1;
	}
	public void setNum1(Integer num1) {
		this.num1 = num1;
	}
	public Integer getNum2() {
		return num2;
	}
	public void setNum2(Integer num2) {
		this.num2 = num2;
	}
	public Integer getNum3() {
		return num3;
	}
	public void setNum3(Integer num3) {
		this.num3 = num3;
	}
	public Integer getNum4() {
		return num4;
	}
	public void setNum4(Integer num4) {
		this.num4 = num4;
	}
	/*@Override
	public String toString() {
		if(num1<128){
			return "此IP地址属于A类地址,主机地址为:"+num4;
		}else if((num1>=128)&&(num1<192)){
			return "此IP地址属于B类地址,主机地址为:"+num4;
		}else if((num1>=192)&&(num1<224)){
			return "此IP地址属于C类地址,主机地址为:"+num4;
		}else{
			return "输入的Ip地址有误!";
		}
	}*/
	@Override
	public String toString() {
		return "IpInfo [num1=" + num1 + ", num2=" + num2 + ", num3=" + num3
				+ ", num4=" + num4 + "]";
	}
	
	
	
	
	
}
